package com.demo;

import feign.Logger;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

/**
 * @author 李天航
 */
@SpringBootApplication
@EnableFeignClients
@MapperScan("com.demo.mapper")
public class LessonGetApplication {
    @Bean
    public Logger.Level getLog(){//日志对象输出
        return Logger.Level.NONE;
        /*
        NONE:无信息
        BASIC:记录基础信息
        HEADERS:在BASIC的基础上记录一些常用信息
        FULL:全部信息
         */
    }
    public static void main(String[] args) {
        SpringApplication.run(LessonGetApplication.class);
    }
}
